package com.gjy.design.factory.abstraction;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-11-10 11:31:53
 */
public class Application {

    private final Button button;
    private final TextField textField;

    public Application(UIFactory factory) {
        this.button = factory.createButton();
        this.textField = factory.createTextField();
    }

    public void render() {
        button.render();
        textField.draw("Hello");
    }

}
